#include <bits/stdc++.h>
using namespace std;
int n;
int a[100020];
int cnt[100020];
int cur=0;
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		scanf("%d",&a[i]);
		cnt[a[i]]++;
	}
	for(int i=1;i<=100000;i++)
	{
		cur=max(0,cur-cnt[i]);
		cur+=cnt[i];
	}
	cout<<cur;
	return 0;
}
